package com.zecan.blog.utils;

/**
 * @ClassName BlogConstant
 * @Description
 * @date 2022/10/29 12:32
 * @Version 1.0
 * 存放 所有的前缀信息
 */

public interface BlogConstant {

    //redis 验证码前缀
    String CAPTCHA_KEY = "captcha:";
    // redis 邮箱前缀
    String EMAIL_CODE = "email:";
    // redis 保存聊天室记录的前缀
    String CHAT_ROOM = "chat_room_record";

    // redis 添加浏览量的前缀
    String BLOG_VIEW = "blog_view:";
    // redis 关注前缀
    String FOLLOW_USER = "follow_user:";

    // redis 修改个人信息防抖前缀
    String UPDATE_USER_LIMIT = "update_user_limit:";

    // redis 发送验证码防抖前缀
    String SEND_EMAIL_LIMIT = "send_email_limit:";

    // redis 点赞防抖前缀
    String ARTICLE_ADD_GOOD_LIMIT = "article_add_good_limit";

    // redis 收藏防抖前缀
    String ARTICLE_ADD_STAR_LIMIT = "article_add_star_limit";
    // 权限前缀
    String BLOG_NORMAL_USER ="user";
    // 权限前缀
    String BLOG_ADMIN = "admin";


    //redis 增加点赞前缀
    String USER_GOOD_ARTICLE = "userGood:";
    //redis 减少点赞前缀
    String DEL_GOOD_ARTICLE = "userDelGood:";

    // 定时任务 添加减少点赞前缀
    String QUARTZ_ADD_GOOD_JOB_NAME = "addOrDelGood";

    //定时任务 更新分类标签数量前缀
    String QUARTZ_UPDATE_CLASSIFY_TAG_TOTAL = "updateClassifyTagTotal";

    //定时任务 增加文章浏览量前缀
    String QUARTZ_UPDATE_ARTICLE_VIEW = "updateArticleView";

    // 定会任务 操作分类标签的组名
    String QUARTZ_CLASSIFY_TAG_JOB_GROUP_NAME = "ClassifyTagGroupName";

    //定时任务 操作文章的job组名
    String QUARTZ_ARTICLE_JOB_GROUP_NAME = "articleGroupName";

    //rabbitmq 交换机前缀
    String RABBITMQ_EXCHANGE = "blog_exchange";

    // rabbitmq 添加聊天室聊天记录队列
    String RABBITMQ_CHATROOM_QUEUE = "blog_chat_queue";

    // rabbitmq 发送邮件队列
    String RABBITMQ_SEND_EMAIL_QUEUE = "blog_send_email_queue";

    // rabbitmq 关注队列
    String RABBITMQ_FOLLOW_USER_QUEUE = "blog_follow_user_queue";

    // rabbitmq 取消关注队列
    String RABBITMQ_UNFOLLOW_USER_QUEUE = "blog_unfollow_user_queue";

    // rabbit mq 添加聊天室聊天室的路由
    String RABBITMQ_CHATROOM_ROUTING_KEY = "blog_chat_routing_key";

    // rabbitmq 发送邮件的队列
    String RABBITMQ_SEND_EMAIL_ROUTING_KEY = "blog_send_email_routing_key";

    // rabbitmq 关注路由key
    String RABBITMQ_FOLLOW_ROUTING_KEY = "blog_follow_routing_key";

    // rabbitmq 取消关注路由key
    String RABBITMQ_UNFOLLOW_ROUTING_KEY = "blog_unfollow_routing_key";
}
